package cn.zymall.merchant.mapper;

import cn.zymall.common.model.Coupon;
import cn.zymall.common.model.UserCoupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserCouponMapper extends BaseMapper<UserCoupon> {
	Integer getUserCouponCount(@Param("couponId") Integer couponId, @Param("userId") Integer userId);

	List<Coupon> getUserCouponByUserId(Integer userId);
}
